export default function(data, id) {

	if (typeof data != 'object' || !data) return
	let text = ''

	data?.find((item) => {
		item.children.forEach((i) => {
			if (i.id == id) {
				text = i.text
				return
			}
		})
	})

	return text
}